package com.jncz.reference;

import junit.framework.Assert;
import junit.framework.TestCase;

public class ReferenceTest extends TestCase{
	public void testFinalize() throws InterruptedException {
		Test tt = new Test();
		tt.setName("jncz");
		Assert.assertNotNull(tt);
		tt = null;
		System.gc();
		Assert.assertNull(tt);
		Thread.sleep(10);
		Assert.assertNotNull(Test.t);
		Assert.assertEquals("jncz", Test.t.getName());
		System.out.println(Test.t.getName());
	}

}
